﻿#include<stdio.h>
#include<stdlib.h>
#define MAX 40
int main(){
	char first[MAX];
	char last[MAX];
	char formal[2 * MAX + 10];
	double prize;
	puts("please enter you first name:");
	gets(first);
	puts("please enter you last name:");
	gets(last);
	puts("please enter you prize money:");
	scanf("%lf", &prize);
	sprintf(formal, "%s,%-19s:$%6.2f\n", last, first, prize);
	puts(formal);
	system("pause");
	return 0;
}